package rpg;

import java.awt.Color;
import java.awt.Font;
import java.awt.Insets;
import java.awt.Point;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.io.*;
import java.util.StringTokenizer;

import javax.swing.JButton;
import javax.swing.JDialog;
import javax.swing.JTextArea;

public class TabWyn extends JDialog {

	private JTextArea tabela;
	private String tekst="";
	private JButton ok;
	
	public TabWyn(){
		setTitle("Wyniki");
		setDefaultCloseOperation(DISPOSE_ON_CLOSE);
		setLayout(null);
		setSize(300, 290);
		setResizable(false);
		setModal(true);
		setLocation(new Point(330, 220));
		
		tabela=new JTextArea();
		tabela.setBounds(30, 20, 240, 190);
		tabela.setFont(new Font("Verdana", Font.BOLD, 12));
		tabela.setForeground(Color.BLACK);
		tabela.setBackground(Color.WHITE);
		
		ok=new JButton("OK");
		ok.setBounds(120, 220, 60, 30);
		ok.setFocusable(false);
		ok.setMargin(new Insets(1, 1, 1, 1));
		ok.addActionListener(new Zamknij());
		
		
		
		add(tabela);
		add(ok);
		setVisible(true);
	}
	
	
	private class Zamknij implements ActionListener{
		@Override
		public void actionPerformed(ActionEvent e) {
			dispose();			
		}
	}
	
}